package lormi.meipin.entity;

import java.util.Date;
import java.util.List;

import lormi.meipin.dto.RegMerChant;

public class MerChant {
    private Integer merid;

    private String name;

    private Byte sex;
    
    private String sexname;
    
    private Byte nature;

    private String photo;

    private String title;

    private String company;

    private Byte level;

    private Byte firmsize;

    private String address;

    private String label;

    private Boolean ischain;

    private Date createtime;

    private Date updatetime;
    
    public MerChant() {
		super();
	}

	public MerChant(Integer merid,RegMerChant regMerChant) {
		super();
		this.merid = merid;
		this.name = regMerChant.getUsername();
		this.sex = regMerChant.getSex();
		this.photo = regMerChant.getPhone();
		this.title = regMerChant.getTitle();
		this.company = regMerChant.getCompany();
		this.nature = regMerChant.getNature();
		this.firmsize = regMerChant.getFirmsize();
		this.address = regMerChant.getAddress();
		this.label = regMerChant.getLabel();
		this.createtime = new Date();
		this.updatetime = this.createtime;
	}
    
    private List<LabelTemplate> labels;

    public String getSexname() {
		return sexname;
	}

	public void setSexname(String sexname) {
		this.sexname = sexname;
	}

	public List<LabelTemplate> getLabels() {
		return labels;
	}

	public void setLabels(List<LabelTemplate> labels) {
		this.labels = labels;
	}

	public Byte getNature() {
		return nature;
	}

	public void setNature(Byte nature) {
		this.nature = nature;
	}

	public Integer getMerid() {
        return merid;
    }

    public void setMerid(Integer merid) {
        this.merid = merid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Byte getSex() {
        return sex;
    }

    public void setSex(Byte sex) {
        this.sex = sex;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo == null ? null : photo.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company == null ? null : company.trim();
    }

    public Byte getLevel() {
        return level;
    }

    public void setLevel(Byte level) {
        this.level = level;
    }

    public Byte getFirmsize() {
        return firmsize;
    }

    public void setFirmsize(Byte firmsize) {
        this.firmsize = firmsize;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label == null ? null : label.trim();
    }

    public Boolean getIschain() {
        return ischain;
    }

    public void setIschain(Boolean ischain) {
        this.ischain = ischain;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }
}